package com.maiji.cloud.entities.shopingmall;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * 商品评论回复表
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "goods_comment_comment")
public class GoodsCommentComment {

    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId;

    @Column(name = "comment_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String commentId;  // 商品评论ID

    @Column(name = "seller_reply", type = MySqlTypeConstant.BIT)
    private Boolean sellerReply;  // 是否为卖家回复

    @Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String userId;  // 评论者ID

    @Column(name = "content", type = MySqlTypeConstant.TEXT)
    private String content;  // 评论者文本内容

    @Column(name = "comment_date", type = MySqlTypeConstant.DATETIME)
    private Date commentDate; // 评论日期时间

    @TableLogic
    @Column(name = "is_del", type = MySqlTypeConstant.INT, length = 1, defaultValue = "0")
    private Integer isDel;

}
